<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<s:form theme="simple" method="post" action="updateGeneralOptions.htm" id="form">
	<table width="100%">
		<tbody>
			<tr>
				<td height="40" class="sectionheading bottom-border">
					General Options
				</td>
			</tr>

			<tr>
				<td>
					<table class="verdana12blacknormal" width="100%">
						<tbody>
							<s:hidden name="generalOptions.id" value="%{generalOptions.id}"/>
							<tr align="left">
								<td>
									<s:actionerror cssClass="note-red"/>
									<s:actionmessage cssClass="note-red"/>
									<s:fielderror cssClass="note-red"/>
								</td>
							</tr>
							<tr>
								<td align="right" class="verdana12blacknormal">
									Require Credit Card For New Accounts:
								</td>
								<td>
									<s:select cssClass="Textfiled-border"  list="#{'true':'Yes','false':'No'}"
										name="generalOptions.requiredCreditCardForNewAccount"
										theme="simple"></s:select>
								</td>
							</tr>
							<tr>
								<td align="right" class="verdana12blacknormal">
									New Account Deposit (<s:property value="generalOptions.currency.currency"/>):
								</td>
								<td>
									<s:textfield cssClass="Textfiled-border"  name="generalOptions.newAccountDeposit"
										theme="simple"></s:textfield>
									(negative amount is debit)
								</td>
							</tr>

							<tr>
								<td align="right" class="verdana12blacknormal">
									Require Credit Card On File For Selling:
								</td>
								<td>
									<s:select cssClass="Textfiled-border"  list="#{'true':'Yes','false':'No'}"
										name="generalOptions.requiredCreditCardOnNewFileForSelling"
										theme="simple"></s:select>
								</td>
							</tr>

							<tr>
								<td align="right" class="verdana12blacknormal">
									Require Credit Card On File For Bidding:
								</td>
								<td>
									<s:select cssClass="Textfiled-border"  list="#{'true':'Yes','false':'No'}"
										name="generalOptions.requiredCreditCardOnNewFileForBidding"
										theme="simple"></s:select>
								</td>
							</tr>

							<tr>
								<td align="right" class="verdana12blacknormal">
									Auto approve new users:
								</td>
								<td>
									<s:select cssClass="Textfiled-border"  list="#{'true':'Yes','false':'No'}"
										name="generalOptions.autoApproveNewUsers" theme="simple"></s:select>
								</td>
							</tr>
							<tr>
								<td align="right" class="verdana12blacknormal">
									Confirmed New Users Status:
								</td>
								<td>
									<s:select cssClass="Textfiled-border"  list="#{'true':'Enabled','false':'Disabled'}"
										name="generalOptions.confirmedNewUsersStatus" theme="simple"></s:select>
								</td>
							</tr>

							<tr>
								<td align="right" class="verdana12blacknormal">
									Required positive balance for selling (<s:property value="generalOptions.currency.currency"/>):
								</td>
								<td>
									<s:textfield cssClass="Textfiled-border"
										name="generalOptions.requiredPositiveBalanceForSelling" />
									Zero or positive value
								</td>
							</tr>
							<tr>
								<td align="right" class="verdana12blacknormal">
									Maximum Allowed Negative Balance (<s:property value="generalOptions.currency.currency"/>):
								</td>
								<td>
									<s:textfield cssClass="Textfiled-border"
										name="generalOptions.maximumAllowedNegativeBalance"
										theme="simple" />
									Negative value only
								</td>
							</tr>
							<tr>
								<td align="right" class="verdana12blacknormal">
									Sellers Must Prepay Listing Fees:
								</td>
								<td>
									<s:select cssClass="Textfiled-border"  list="#{'true':'Yes','false':'No'}"
										name="generalOptions.sellersMustPrepayListingFees"
										theme="simple"></s:select>
									Prepay mode
								</td>
							</tr>

							<tr>
								<td align="right" class="verdana12blacknormal">
									Default Currency:
								</td>
								<td>
									<s:select cssClass="Textfiled-border"  list="currencyList" listKey="id" listValue="currency"
										name="generalOptions.currency.id" theme="simple"></s:select>
									<s:hidden name="generalOptions.currency.currency" value="%{generalOptions.currency.currency}"></s:hidden>
									<s:hidden name="generalOptions.currency.code" value="%{generalOptions.currency.code}"></s:hidden>
								</td>
							</tr>

							<tr>
								<td align="right" class="verdana12blacknormal">
									Default Payment Value (<s:property value="generalOptions.currency.currency"/>):
								</td>
								<td>
									<s:textfield cssClass="Textfiled-border"  name="generalOptions.defaultPaymentValue"
										theme="simple" />
								</td>
							</tr>
							<tr>
								<td align="right" class="verdana12blacknormal">
									Minimum Payment (<s:property value="generalOptions.currency.currency"/>):
								</td>
								<td>
									<s:textfield cssClass="Textfiled-border"  name="generalOptions.minimumPayment"
										theme="simple" />
								</td>
							</tr>

							<tr>
								<td align="right" class="verdana12blacknormal">
									Proxy Bidding Status:
								</td>
								<td>
									<s:select cssClass="Textfiled-border"  list="#{'true':'Enabled','false':'Disabled'}"
										name="generalOptions.proxyBiddingStatus" theme="simple"></s:select>
								</td>
							</tr>

							<tr>
								<td align="right" class="verdana12blacknormal">
									Maximum Number For Search results:
								</td>
								<td>
									<s:textfield cssClass="Textfiled-border"
										name="generalOptions.maximumNumberForSearchResults"
										theme="simple" />
									&nbsp; Set to 0 for unlimited
								</td>
							</tr>
							<tr>
								<td align="right" class="verdana12blacknormal">
									Search Terms in Search Results Tags:
								</td>
								<td>
									<s:textfield cssClass="Textfiled-border"  name="generalOptions.searchPrefix" theme="simple" />
									<s:textfield cssClass="Textfiled-border"  name="generalOptions.searchSuffix" theme="simple" />
								</td>
							</tr>
							<tr>
								<td align="right" class="verdana12blacknormal">
									Default Date-Time Format:
								</td>
								<td>
									<s:select list="dates" theme="simple" cssClass="Textfiled-border" listKey="dateFormat" listValue="date" name="generalOptions.defaultDateTimeFormat" value="%{generalOptions.defaultDateTimeFormat}"></s:select>

								</td>
							</tr>

							<tr>
								<td align="right" class="verdana12blacknormal">
									Session Time Out:
								</td>
								<td>
									<s:textfield cssClass="Textfiled-border"  name="generalOptions.sessionTimeOut" value="%{generalOptions.sessionTimeOut}" theme="simple" />
									Seconds
								</td>
							</tr>

							<tr>
								<td align="right" class="verdana12blacknormal">
									User Maximum Allowed Bids and Buys:
								</td>
								<td>
									<s:textfield cssClass="Textfiled-border"  name="generalOptions.userMaximumAllowedBidsAndBuys" theme="simple" />
									Items Per Session
								</td>
							</tr>
							<tr>
								<td align="right" class="verdana12blacknormal">
									User Bids and Buys Session Time:
								</td>
								<td>
									<s:textfield cssClass="Textfiled-border"  name="generalOptions.userBidsAndBuysSessionTime"
										theme="simple" />
									Minutes
								</td>
							</tr>

							<tr>
								<td align="right" class="verdana12blacknormal">
									User Maximum Allowed Items To Sell:
								</td>
								<td>
									<s:textfield cssClass="Textfiled-border"
										name="generalOptions.userMaximumAllowedItemsToSell"
										theme="simple" />
									Items Per Session
								</td>
							</tr>

							<tr>
								<td align="right" class="verdana12blacknormal">
									User Sell Session Time:
								</td>
								<td>
									<s:textfield cssClass="Textfiled-border"  name="generalOptions.userSellSessionTime"
										theme="simple" />
									Minutes
								</td>
							</tr>

							<tr>
								<td colspan="2" align="center">
									<s:submit type="image"
										src="../Admin-Images/save-chagnes-button.gif" />
									<img style="cursor: pointer;"
										onclick="document.getElementById('form').reset();"
										src="../Admin-Images/reset-button.gif" alt="Reset">
								</td>
							</tr>
						</tbody>
					</table>
				</td>
			</tr>
		</tbody>
	</table>
</s:form>